package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.domain.TbDelivery;
import com.bwie.mapper.TbDeliveryMapper;
import com.bwie.service.TbDeliveryService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TbDeliveryServiceImpl implements TbDeliveryService {
    @Resource
    TbDeliveryMapper tbDeliveryMapper;
    @Override
    public R getDeliveryList(PageInfoVo pageInfoVo) {
        Page<TbDelivery> page = new Page<>(pageInfoVo.getPageNum(), pageInfoVo.getPageSize());
        Page<TbDelivery> selectPage = tbDeliveryMapper.selectPage(page, null);
        return R.OK(selectPage);
    }
}
